﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SequentialPattern
{
    /// <summary>
    /// 抽象類別, 序列樣式演算法基本類別
    /// </summary>
    public abstract class SequentialPattern
    {
        /// <summary>
        /// 最小支持度
        /// </summary>
        public double MinSupport { get; set; }

        /// <summary>
        /// 序列樣式集合
        /// </summary>
        public BasicClass.SequentialPatternCollection SequentialPatterns { get; set; }

        /// <summary>
        /// (抽象方法)讀取交易序列檔案
        /// </summary>
        /// <param name="filepath"></param>
        public abstract void LoadFile(string filepath);

        /// <summary>
        /// (抽象方法)執行序列樣式演算法
        /// </summary>
        public abstract void Run();
    }
}